<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>公益发布</title>
    <link rel="stylesheet" href="../res/layui/css/layui.css" media="all">
    <script src="../res/js/jquery-3.1.1.min.js" type="text/javascript"
            charset="utf-8"></script>
    <script src="../res/layui/layui.js" charset="utf-8"></script>
    <script src="../res/layui/layui.all.js"></script>
</head>
<script>
    $(function(){
        $("#add").click(function(){
            //iframe层
            layer.open({
                type: 2,
                title: '衣物增加页面',
                shadeClose: true,
                shade: 0.8,
                area: ['30%', '30%'],
                content: 'Gongyiadd.html', //iframe的url
                end:function(){

                }
            });
        })
    })
</script>
<body>
<button type="button" class="layui-btn layui-btn-normal" id="add">增加公益</button>
</body>
</html>